"use strict";
/**
 * boolean
 * number
 * string
 * array
 * tuple
 * enum
 * any
 * null
 * undefined
 * void
 * never
 */
var flag = true;
var num = 1;
var str = 'hello';
var arrBool = [true, false];
var arrNum = [1, 2];
var arrStr = ['1'];
var arrAny = [1, 'str', false];
//元组
var arr = ["tsc", 1, true];
//枚举
var Flag;
(function (Flag) {
    Flag[Flag["success"] = 1] = "success";
    Flag[Flag["error"] = -1] = "error";
})(Flag || (Flag = {}));
;
var f = Flag.success;
console.log(f);
//任意
var any = 'str';
any = 2;
console.log(any);
//never 类型
var neve = (function () {
    throw new Error("erroe");
})();
